Use python to operate InfluxDB and python to operate influxdb
Environment: CentOS6.5 _ x64InfluxDB version: 1.1.0Python: 2.6Preparations
Start the server
Run the following command:
service influxdb start
Example:
[root@localhost ~]# service influxdb startStarting influxdb
InfluxDB: InfluxDB http api Query
In the last article on InfluxDB: InfluxDB's InfluxDB http api write operation, we introduced the process of using InfluxDB's http api to write data, this article introduces how to use InfluxDB's http api to query data. For more details about Influx
Tags: auth influxdb running his icon doc should group by ACKGrafana comes with a feature-rich data source plug-in influxdb. Supports rich query Editor, annotations, and templating (template) queries. Adding data sources (Adding the source)
Click the top Grafana icon to open the side menu.
In the Dashboards side menu under links, you should find a link called data sources.
Click on the but
Tags: readme.md open zhang Pat Hot add bar version-sharedThis is my previous INFLUXDB installation and configuration notes, recorded here, it is also convenient for me to check later. Environment: centos6.5_x64 Influxdb version: 1.1.0First, install 1, binary installationHere is an example of centos6.5 installation: wget https://dl.influxdata.com/influxdb/release
:
$ wget https://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb
$ sudo dpkg -i influxdb_latest_amd64.deb
Start InfluxDB:
$ sudo /etc/init.d/influxdb start
Setting ulimit -n 65536
Starting the process influxdb [ OK ]
influxdb process was started [ OK ]
Open the
Tags: php write pos uses the error BSP button to specify manual The HTTP API also has two operations: Write and query, this article first introduces you to the Influxdb HTTP API write operation mode.In the previous article on INFLUXDB study: The basic operation of INFLUXDB learning Influxdb, we mentioned that there are
Recently used in the InfluxDB, here to record the learning process, but also hope to help other students to learn.This paper mainly introduces the functional characteristics of INFLUXDB and the installation process of INFLUXDB. For more Influxdb detailed tutorials See: INFLUXDB
This article explains how to use python to operate the InfluxDB method environment: CentOS6.5 _ x64
InfluxDB version: 1.1.0
Python: 2.6
Preparations
Start the server
Run the following command:
service influxdb start
Example:
[root@localhost ~]# service influxdb startStarting
Influxdb and traditional database in the concept of a lot of different, this article will give you some basic concepts in the INFLUXDB, more influxdb detailed tutorial see: INFLUXDB Series of Learning Tutorials DirectoryINFLUXDB Technology Group: 580487672 (click to join)Comparison with nouns in traditional database
GRAFANA+TELEGRAF+INFLUXDB, using the client-side storage->web Interface display mode of operation, using UTP transmission data, and support custom charts, with good extensibility,grafana page presentation is more beautiful, more importantly influxdb provides python api, provides the Python API , influxdb provides Py
InfluxDB is an open source distributed timing, event, and metrics database.Written in the Go language without external dependencies. Its design goal is to achieve distributed and horizontal scaling expansion.It has three main features:1. Time series (timeseries): You can use time-related functions (such as Max, Min, sum, etc.)2. Metrics (Metric): You can calculate large amounts of data in real time3. Eevents (Event): It supports arbitrary event dataCh
dashboard
After logging in, click the Grafama icon in the upper left corner of the page. In the menu bar that appears, click data source.
3. Fill in the relevant information on the Data Source Settings Interface
Data Sources/New Interface
Enter the following information
Data Sources / NewSettingsName:influxDB Default:yesType:InfluxDBHTTPURL:http://influxsrv:8086/Access:proxyAuthBasic Auth:yes With Credentials: noTLS Client Auth:no With CA Cert:
metadata for the database, and there is a file under the Meta directory meta.db .The Wal directory holds the pre-written log file to the .wal end.The data directory holds the actual stored file to the .tsm end.In the above diagram, _internal is the database name, monitor is the storage policy name, and the number named directory in the next level directory is the ID value of Shard.The storage policy has two shard,id of 1 and 2,shard stores data for a certain time period. The next level of the d
1) count () functionReturns the number of non-null values in an (field) field.Grammar:SELECT COUNT (Example:>select COUNT (water_level) from H2o_feetname:h2o_feet--------------time count1970-01-01t00:0 0:00z 15258Description Water_level This field has a total of 15,258 data in the H2o_feet table.Note: The function in Influxdb will default to epoch 0 (1970-01-01t00:00:00z) as time if no time is specified.You can add a time condition to the where, as fo
INFLUXDB can process tens of thousands of data per second, saving all of this data in a large amount of storage space, and sometimes we may not need to store all of the historical data, so INFLUXDB introduced a data retention policy (Retention policies), Used to allow us to customize the data retention time. For more Influxdb detailed tutorials See:
. Implement simultaneous operation of MySQL and influxdb by Python code#注意: Python operation MySQL need to install Python-mysql driver package, Baidu download A, generally in the extracted directory after the execution of 1, Python setup.py build 2, python setup.py installPython operation Influxdb also requires python-influxdb$ pip Install
Tags: flush table tor months Insert data lookup function max two pointsThis article is part of the series Influxdb series, which includes the following 15 parts:
influxdb to learn Influxdb installation and introduction
influxdb basic operation of learning Influxd
offers a variety of operating methods:
Client command line mode
HTTP API Interface
API libraries for each language
Web-based Administration page operations
The client command line operation enters the command lineinfluxConnected to http://localhost:8086 version 1.2.4InfluxDB shell version: 1.2.4Display Databaseshow databases;New Databasecreate database cpu_info;Using the developme
1) count () functionReturns the number of non-null values in an (field) field.Grammar:SELECT COUNT (Example:>select COUNT (water_level) from H2o_feetname:h2o_feet--------------time count1970-01-01t00:0 0:00z 15258Description Water_level This field has a total of 15,258 data in the H2o_feet table.Note: If the function in Influxdb does not have a specified time, it will default to epoch 0 ( 1970-01-01T00:00:00Z ) as the time.You can add a time condition
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.